// pkg/types/index.go
package types

type FileBlock struct {
	Offset int64  `json:"offset"`
	Size   int64  `json:"size"`
	Hash   string `json:"hash"`
}

type FileEntry struct {
	Path     string      `json:"path"`
	Size     int64       `json:"size"`
	FileHash string      `json:"file_hash"`
	Blocks   []FileBlock `json:"blocks,omitempty"`
}

type LayerIndex struct {
	LayerDigest string      `json:"layer_digest"`
	Files       []FileEntry `json:"files"`
	CreatedAt   string      `json:"created_at"`
	Version     string      `json:"version"`
}
